﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace MtgPrinter
{
    public partial class StatisticsForm : Form
    {
        public StatisticsForm()
        {
            InitializeComponent();
        }

        private void StatisticsForm_Load(object sender, EventArgs e)
        {
            timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            SetFormData();
        }

        private void SetFormData()
        {
            Process currentproc = Process.GetCurrentProcess();
            Int64 privmem = currentproc.PrivateMemorySize64;
            decimal privmemd = (decimal)privmem;
            //privmemd/=1024*1024;
            this.lPrivateMemory.Text = privmemd.ToString("N0");
        }
    }
}
